Skip to content

Conversation

@ezelkow1
Copy link
Member

plugin_init calls api_init which will intialize all the global hooks needed for lifecycle and other plugins. Without doing this those hook objects are empty so if a plugin (such as lua) makes a call to add a lifecycle hook on remapinit, this will crash since they haven't been initialized. This occurs during the urlRewriteVerify step of verification where it tries to load plugins or at least initialize them, these will crash

plugin_init calls api_init which will intialize all the global hooks needed for lifecycle and other plugins. Without doing this those hook objects are empty so if a plugin (such as lua) makes a call to add a lifecycle hook on remapinit, this will crash since they haven't been initialized
@ezelkow1 ezelkow1 added the Bug label Sep 22, 2022
@ezelkow1 ezelkow1 added this to the 10.0.0 milestone Sep 22, 2022
@ezelkow1 ezelkow1 self-assigned this Sep 22, 2022
@ezelkow1
Copy link
Member Author

[approve ci]

@ezelkow1 ezelkow1 merged commit 7c6d19c into apache:master Sep 23, 2022
zwoop pushed a commit that referenced this pull request Oct 4, 2022
plugin_init calls api_init which will intialize all the global hooks needed for lifecycle and other plugins. Without doing this those hook objects are empty so if a plugin (such as lua) makes a call to add a lifecycle hook on remapinit, this will crash since they haven't been initialized

(cherry picked from commit 7c6d19c)
@zwoop
Copy link
Contributor

zwoop commented Oct 4, 2022

Cherry-picked to v9.2.x

@zwoop zwoop modified the milestones: 10.0.0, 9.2.0 Oct 4, 2022
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request Feb 21, 2023
* asf/9.2.x:
  Updated ChangeLog
  s3_auth: Fix parsing of virtual_host (apache#9103)
  s3_auth: accept longer config lines (apache#9090)
  Add a proxy.config.http.per_server.connection.max test (apache#9097)
  Move plugin_init for verify cmd (apache#9102)
  Fix unused-but-set-variable warnings by llvm-15 (apache#9106)
  Fix compile error with llvm-15 (apache#9105)
  Fix expected sha1sum for the Proxy Verifier binary (apache#9112)
  Updating AuTest to use Proxy Verifier v2.4.2 (apache#9110)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants